package com.my12306.common.util.quartz.job;

import com.my12306.train.service.SeatService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author:苏牧夕
 * @Date:2020/8/26 11:24
 * @Version 1.0
 */
@Component("trainSchedulerJob")
public class TrainSchedulerJob extends BaseJob {
    @Resource
    private SeatService seatService;

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        seatService.refreshSeatEveryDay();
    }
}
